package com.neu.question.mapper;

import com.neu.question.domain.ProjectInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
* @author DELL
* @description 针对表【project_info】的数据库操作Mapper
* @createDate 2022-10-31 19:09:10
* @Entity com.neu.question.domain.ProjectInfo
*/
@Mapper
public interface ProjectInfoMapper extends BaseMapper<ProjectInfo> {
    /**
     * 查询项目列表
     *
     * @param projectEntity
     * @return
     */
    List<Map<String, Object>> queryProjectList(ProjectInfo projectEntity);

    /**
     * 根据项目名称判断项目是否存在
     *
     * @param projectEntity
     * @return
     */
    int queryExistProject(ProjectInfo projectEntity);


    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table project_info
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(ProjectInfo record);

    int queryExistProjectByUser(ProjectInfo projectEntity);

    String selectProjectIdByName(String projectName);
}




